<template>
  <div>
    <van-nav-bar :title="title" left-arrow @click-left="$router.go(-1)" />
  </div>
</template>

<script>
export default {
  // 用来接收标题
  props: {
    title: {
      type: String,
      required: true
    }
  }
}
</script>

<style lang="scss" scoped>
/deep/ .van-nav-bar {
  .van-icon {
    font-size: 22px;
    color: #666;
  }
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
}
</style>
